<?php

/**
 * Description of ArticleView for Admin
 *
 * @author Ian Clarence <ian.clarence@gmail.com>
 */
final class ArticleView extends ViewArticle {
    
    /**
     * The constructor.
     */
    public function __construct($fields = array()) {
        parent::__construct($fields);
    }
    
    /**
     * The final rendering. 
     */
    public function make() {
        parent::make();

        /**
         * Normal running mode.
         */
        if (DEBUGGING_MODE == OFF) {            
            switch($this->fields['panel']['article']['name']) {
                default:
                    break;
                case 'primary_navigation':
                    $this->navigationList('primaries');
                    break;
                case 'welcome_page':
                    $this->navigationList('ancestors');
                    break;
                case 'footer_navigation':
                    $this->navigationList('primaries');
                    break;
                case 'left_navigation':
                    $this->navigationList('children');
                    $this->navigationList('siblings');
                    $this->navigationList('subdomains');
                    $this->navigationList('languages');
                    break;
            }          
        }
        
    }

}